<script setup lang="ts">
import { reactive } from 'vue'
import { useRouter } from 'vue-router';
import ContractPage from '@/views/contract/compontens/ContractPage.vue';

const router = useRouter()
const type = router.currentRoute.value.params.id  as any

// 返回
const leftBack = () => history.back()
</script>

<template>
    <van-nav-bar title="我的合约" left-arrow @click-left="leftBack" />
    <Suspense>
        <ContractPage :type="type" />
    </Suspense>
</template>

<style scoped></style>